<template>
  <div class="pic-list">
    <ul>
      <li v-for="(pic, index) in picShow" :key="index" @click="goList">
        <img :src="pic.url" alt="" />
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: {
    picShow: {
      type: Array,
      default: () => {
        return []
      },
    },
  },
  methods: {
    goList() {
      this.$router.push('/list')
    },
  },
}
</script>

<style lang="less" scoped>
.pic-list {
  overflow: auto;
  li {
    float: left;
    width: 260px;
    height: 208px;
    margin-left: 20px;
    &:first-child {
      margin-left: 0px;
    }
  }
  img {
    border-radius: @u-border-radius;
    width: 100%;
    height: 100%;
    display: block;
  }
}
</style>
